package com.ccjk.beusoft.hot

import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View

class ThreeActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_three)
    }

    fun onClick(view:View){
        startActivity(Intent(this@ThreeActivity,MainActivity::class.java).addFlags(FLAG_ACTIVITY_CLEAR_TOP))

    }
}
